﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<if condition="$vo['build']==1 && $vo['type']==1">
		<title>{$vo.name}发布的二手房出售·住宅</title>
		</if>
		<if condition="$vo['build']==1 && $vo['type']==2">
		<title>{$vo.name}发布的二手房出售·写字楼</title>
		</if>
		<if condition="$vo['build']==1 && $vo['type']==3">
		<title>{$vo.name}发布的二手房出售·商铺</title>
		</if>
		<if condition="$vo['build']==1 && $vo['type']==4">
		<title>{$vo.name}发布的二手房出售·车位</title>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==1">
		<title>{$vo.name}发布的二手房求买·住宅</title>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==2">
		<title>{$vo.name}发布的二手房求买·写字楼</title>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==3">
		<title>{$vo.name}发布的二手房求买·商铺</title>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==4">
		<title>{$vo.name}发布的二手房求买·车位</title>
		</if>
		<!--<if condition="$vo['build']==1">
		<title>{$vo.name}发布的 二手房转介 出售</title>
			<else/>
			<title>{$vo.name}发布的 二手房转介 求买</title>
		</if>-->
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<script src="__ROOT__/public/webapp/js/vwp.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/s_base.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/rent_detail.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/swiper.min.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/s_valide.css" />
	</head>

	<body>

		<if condition="$vo['build']==1">
		<!--轮播图-->
		<div class="swiper-container" style="height:270px;">
			<div class="swiper-wrapper">
				<volist name="lun" id="a">
				<a class="swiper-slide" href="{$a}"><img src="{$a}" /></a>
				</volist>
			</div>
			<div class="swiper-pagination"></div>
		</div>

		<!--小区信息-->
		<div class="community_info">
			<p class="community_name">小区名称</p>
			<p>
				<if condition="$vo['quyu'] neq NULL">
				<span>{$vo.quyu}</span>
					<else/>
					<span>不限</span>
				</if>
				<span>{$vo.buildname}</span>
			</p>
		</div>

		</if>
		<!--配置-->
		<!--出售车位只有价格，没有面积-->
		<div class="config_wrap clearfix">
			<div class="left">
				<div class="theme_text">
					<i class="iconfont icon-fq_xiaoshoudingjia"></i>
					<span>价格</span>
				</div>
				<if condition="$vo['jiage'] neq NULL">
				<p class="" id="yuezu">{$vo.jiage}万元</p>
					<else/>
					<p class="">面议</p>
				</if>
			</div>
			<div class="left">
				<div class="theme_text">
					<i class="iconfont icon-mianji"></i>
					<span>面积</span>
				</div>
				<if condition="$vo['mianji'] neq NULL">
				<p class="" id="mianji">{$vo.mianji} m²</p>
					<else/>
					<p class="">不限</p>
				</if>
			</div>
		</div>
		<!--发布信息-->
		<!--
			出租住宅：户型、楼层、装修、分佣比例
			出租写字楼：楼层、装修、分佣比例
			出租商铺：装修、分佣比例
			出租车位：分佣比例
		-->

		<if condition="$vo['build']==1 && $vo['type']==1">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						<if condition="$vo['huxing'] neq NULL">
						户型：<span>{$vo.huxing}</span>
							<else/>
							户型：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['louceng'] neq NULL">
							楼层：<span>{$vo.louceng}</span>
							<else/>
							楼层：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['zhuangxiu'] neq NULL">
							装修：<span>{$vo.zhuangxiu}</span>
							<else/>
							装修：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['fangling'] neq NULL">
							房龄：<span>{$vo.fangling}</span>
							<else/>
							房龄：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						分佣比例：<span>{$vo.fenyong}</span>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==1 && $vo['type']==2">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						<if condition="$vo['louceng'] neq NULL">
							楼层：<span>{$vo.louceng}</span>
							<else/>
							楼层：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['zhuangxiu'] neq NULL">
							装修：<span>{$vo.zhuangxiu}</span>
							<else/>
							装修：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['fangling'] neq NULL">
							房龄：<span>{$vo.fangling}</span>
							<else/>
							房龄：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						分佣比例：<span>{$vo.fenyong}</span>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==1 && $vo['type']==3">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						<if condition="$vo['zhuangxiu'] neq NULL">
							装修：<span>{$vo.zhuangxiu}</span>
							<else/>
							装修：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						分佣比例：<span>{$vo.fenyong}</span>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==1 && $vo['type']==4">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						分佣比例：<span>{$vo.fenyong}</span>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==1">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						<if condition="$vo['huxing'] neq NULL">
							户型：<span>{$vo.huxing}</span>
							<else/>
							户型：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['louceng'] neq NULL">
							楼层：<span>{$vo.louceng}</span>
							<else/>
							楼层：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['zhuangxiu'] neq NULL">
							装修：<span>{$vo.zhuangxiu}</span>
							<else/>
							装修：<span>不限</span>
						</if>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==2">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						<if condition="$vo['louceng'] neq NULL">
							楼层：<span>{$vo.louceng}</span>
							<else/>
							楼层：<span>不限</span>
						</if>
					</p>
					<p class="content_text">
						<if condition="$vo['zhuangxiu'] neq NULL">
							装修：<span>{$vo.zhuangxiu}</span>
							<else/>
							装修：<span>不限</span>
						</if>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==3">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
					<p class="content_text">
						<if condition="$vo['zhuangxiu'] neq NULL">
							装修：<span>{$vo.zhuangxiu}</span>
							<else/>
							装修：<span>不限</span>
						</if>
					</p>
				</div>
			</div>
		</if>
		<if condition="$vo['build']==2 && $vo['type']==4">
			<div class="content publish_info">
				<div class="theme_text">
					<i class="iconfont icon-biaoqian"></i>
					<span>发布信息</span>
				</div>
				<div class="publish_cell clearfix">
				</div>
			</div>
		</if>

		<!--详情描述-->
		<div class="content">
			<div class="theme_text">
				<i class="iconfont icon-biaoqian"></i>
				<span>详情描述</span>
			</div>
			<p class="content_text">{$vo.des}</p>
		</div>
		<!--发布人-->
		<div class="content release_person">
			<div class="theme_text">
				<i class="iconfont icon-biaoqian"></i>
				<span>发布人</span>
			</div>
			<div class="content_text clearfix">
				<div class="left">
					<img src="{$vo.headimg}" class="avatar" />
					<p class="release_name">{$vo.name}</p>
				</div>
				<if condition="$vo['erwei'] neq NULL">
				<div class="left avatar_code">
					<img src="{$vo.erwei}" />
				</div>
					<else />
					<div class="left avatar_code">
						此用户未上传二维码
					</div>
				</if>
			</div>
		</div>
		<!--底部菜单-->
		<div class="tab_bottom">
			<if condition="$find eq NULL ">
			<a href="{:U('Wechat/Webmine/shoucang',['id'=>$vo['id'],'model'=>'zhuanershou'])}" class="left" id="collect">
				<i class="iconfont icon-shoucang1"></i>
				<p>收藏</p>
			</a>
				<else />
				<a href="{:U('Wechat/Webmine/quxiaoshoucang',['id'=>$find['id'],'model'=>'zhuanershou'])}" class="left" id="collect" style="color:#f6c6a6;">
					<i class="iconfont icon-shoucang1" style="color:#f6c6a6;"></i>
					<p>取消收藏</p>
				</a>
			</if>
			<a href="tel:{$vo.phone}" class="callup">立即拨打</a>
		</div>
	</body>
	<script src="__ROOT__/public/webapp/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="__ROOT__/public/webapp/js/Validform_v5.3.2_min.js" type="text/javascript" charset="utf-8"></script>
	<script src="__ROOT__/public/webapp/js/s_common.js" type="text/javascript" charset="utf-8"></script>
	<script src="__ROOT__/public/webapp/js/swiper.jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		// 轮播图
		var swiper = new Swiper('.swiper-container', {
			pagination: '.swiper-pagination',
			paginationClickable: true,
			autoplay: 2000,
			loop: true
		});
		var flag = false;
		$('#collect').on('click', function() {
			if(!flag){
				$(this).css('color', '#f6c6a6');
				$(this).find('i').css('color', '#f6c6a6');
				$(this).find('p').text('已收藏');
			}else{
				$(this).css('color', '#a6c5f6');
				$(this).find('i').css('color', '#a6c5f6');
				$(this).find('p').text('收藏');
			}
			flag = !flag;
		})
		
		var  yuezu_str = $('#yuezu').text();
		if(yuezu_str.indexOf('以下') > 0){
			$('#yuezu').text(yuezu_str.replace('元',''));
		}
		var  mianji_str = $('#mianji').text();
		if(mianji_str.indexOf('~') > 0){
			$('#mianji').text(mianji_str.replace('m²',''));
		}
        if(yuezu_str.indexOf("万万")!=-1){
        $('#yuezu').text(yuezu_str.replace('万万','万'));
        }
		
	</script>

</html>